﻿<UserControl x:Class="BleQua.Controls.ContactsControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:BleQua"
    xmlns:data="clr-namespace:BleQua.Data;assembly=BleQua.DataModel"
    xmlns:common="clr-namespace:Alfa.Common"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="352" d:DesignWidth="197" Loaded="UserControl_Loaded" DataContext="{Binding Contacts, Source={StaticResource DataSource}}">
	<Grid>
		<ListView Name="ContactsList" ItemsSource="{Binding Mode=OneWay}">
			<ListView.ItemTemplate>
				<DataTemplate>
					<DockPanel>
						<StackPanel Orientation="Vertical">
							<TextBlock Text="{Binding Path=Nickname}" HorizontalAlignment="Left" VerticalAlignment="Top"></TextBlock>
							<TextBlock Text="{Binding Path=VCard.Description}" HorizontalAlignment="Left" VerticalAlignment="Top"></TextBlock>
						</StackPanel>
						<Image Source="{Binding Path=Avatar}" HorizontalAlignment="Right" VerticalAlignment="Top" Width="35" Height="35" Margin="5"></Image>
					</DockPanel>
				</DataTemplate>
			</ListView.ItemTemplate>
		</ListView>
	</Grid>
</UserControl>
